﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace YY.Common
{
    public static class EnumCommon
    {
        /// <summary>
        /// 系统角色类型
        /// </summary>
        public enum SysRoleType
        {
            //用户角色 0-管理员,1-普通业务员,2-客服,3-财务
            /// <summary>
            /// 管理员
            /// </summary>
            管理员 = 0,
            /// <summary>
            /// 业务员
            /// </summary>
            业务员 = 1,
            /// <summary>
            /// 客服人员
            /// </summary>
            客服员 = 2,
            /// <summary>
            /// 财务人员
            /// </summary>
            财务员 = 3,
            主管经理 = 4
        }
        /// <summary>
        /// 权限操作类型
        /// </summary>
        public enum PermissionOpType
        {
            /// <summary>
            /// 新增
            /// </summary>
            Add = 1,
            /// <summary>
            /// 修改
            /// </summary>
            Update,
            /// <summary>
            /// 保存
            /// </summary>
            Save,
            /// <summary>
            /// 删除
            /// </summary>
            Delete,
            /// <summary>
            /// 审核
            /// </summary>
            Verify,
            /// <summary>
            /// 打印
            /// </summary>
            Print,
            /// <summary>
            /// 上传
            /// </summary>
            Upload,
            /// <summary>
            /// 下载
            /// </summary>
            Download,
            /// <summary>
            /// 处理流程
            /// </summary>
            Handle,
            /// <summary>
            /// 导出数据
            /// </summary>
            Export
        }

        public enum OptionType
        {
            港口 = 1,
            码头,
            装柜形式,
            提柜堆场,
            拖车行,
            中转类型,
            包装种类,
            进出口类型,
            报关行,
            币制单位,
            费目类型,
            结算对象
        }

        /// <summary>
        /// 编码规则类型
        /// </summary>
        public enum CodeRuleType
        {
            /// <summary>
            /// 单据编码
            /// </summary>
            Bill = 1,
            /// <summary>
            /// 其他编码
            /// </summary>
            Other
        }

        /// <summary>
        /// 作业单流程状态
        /// </summary>
        public enum OrderStatus
        {
            取消 = -1,
            //订舱录入 = 0,
            接单确认 = 1,
            操作完成 = 2,
            财务审核 = 3,
            待出账单 = 4,
            已出账单 = 5,
            已收款 = 6
        }

        /// <summary>
        /// 报关状态
        /// </summary>
        public enum CustomsStatus
        {
            无报关 = 0,
            接单,
            交单
        }

        /// <summary>
        /// 费用类型
        /// </summary>
        public enum FeeType
        {
            应收 = 1,
            应付 = 2
        }

        /// <summary>
        /// 系统参数配置类型
        /// </summary>
        public enum SysParamType
        {
            /// <summary>
            /// 币制单位默认值
            /// </summary>
            DefaultUnit=1,
            /// <summary>
            /// 拖车费目名称
            /// </summary>
            TCFeeItemName
        }
    }
}
